import { createApp } from 'vue'
import '@/styles/common.scss'
import App from './App.vue'
import router from '@/router/index'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
//引入懒加载
import { lazyPlugin } from './directives'
import { componentPlugin } from './components/main'
// 全局组件

const pinia = createPinia()
const app = createApp(App)
pinia.use(piniaPluginPersistedstate)
app.use(lazyPlugin)
app.use(pinia)
app.use(router)
app.use(componentPlugin)
app.mount('#app')

